package org_enum

// 组织-组织类型
type orgOrganizationCategory int

var OrgOrganizationCategory orgOrganizationCategory

// 政府机构
func (c *orgOrganizationCategory) GovernmentOrganization() int {
	return 1
}

// 运输企业
func (c *orgOrganizationCategory) TransportEnterprise() int {
	return 2
}

// 个体
func (c *orgOrganizationCategory) SelfEmployed() int {
	return 3
}

// 供应商
func (c *orgOrganizationCategory) Supplier() int {
	return 4
}

// 代理商
func (c *orgOrganizationCategory) Agent() int {
	return 5
}

// 卫星运营商
func (c *orgOrganizationCategory) SateliteOperator() int {
	return 6
}

// 驾校
func (c *orgOrganizationCategory) DriverSchool() int {
	return 7
}

// 建筑工地
func (c *orgOrganizationCategory) ConstructionSite() int {
	return 8
}

// 消纳场
func (c *orgOrganizationCategory) EliminationField() int {
	return 9
}

// 网约车企业
func (c *orgOrganizationCategory) RideHailing() int {
	return 10
}

func (c *orgOrganizationCategory) ToText(value int) string {
	switch value {

	case 1:
		return "政府机构"

	case 2:
		return "运输企业"

	case 3:
		return "个体"

	case 4:
		return "供应商"

	case 5:
		return "代理商"

	case 6:
		return "卫星运营商"

	case 7:
		return "驾校"

	case 8:
		return "建筑工地"

	case 9:
		return "消纳场"

	case 10:
		return "网约车企业"

	}
	return ""
}

func (c *orgOrganizationCategory) ToValue(text string) int {
	switch text {

	case "政府机构":
		return 1

	case "运输企业":
		return 2

	case "个体":
		return 3

	case "供应商":
		return 4

	case "代理商":
		return 5

	case "卫星运营商":
		return 6

	case "驾校":
		return 7

	case "建筑工地":
		return 8

	case "消纳场":
		return 9

	case "网约车企业":
		return 10

	}
	return 0
}
